package com.rajesh.messageservice.bean;

import net.sqlcipher.Cursor;

public class ChatRoom extends WxDbBean {
	private String chatRoomName;
    private String addTime;
    private String memberList;
    private String displayName;
    private String chatRoomNick;
    private String roomFlag;
    private String roomOwner;
    private byte[] roomData;
    private String isShowName;
    private String selfDisplayName;
    private String style;
    private String chatRoomDataFlag;
    private String modifyTime;
    private String chatRoomNotice;
    private String chatRoomNoticeNewVersion;
    private String chatRoomNoticeOldVersion;
    private String chatRoomNoticeEditor;
    private String chatRoomNoticePublishTime;
	public String getChatRoomName() {
		return chatRoomName;
	}
	public void setChatRoomName(String chatRoomName) {
		this.chatRoomName = chatRoomName;
	}
	public String getAddTime() {
		return addTime;
	}
	public void setAddTime(String addTime) {
		this.addTime = addTime;
	}
	public String getMemberList() {
		return memberList;
	}
	public void setMemberList(String memberList) {
		this.memberList = memberList;
	}
	public String getDisplayName() {
		return displayName;
	}
	public void setDisplayName(String displayName) {
		this.displayName = displayName;
	}
	public String getChatRoomNick() {
		return chatRoomNick;
	}
	public void setChatRoomNick(String chatRoomNick) {
		this.chatRoomNick = chatRoomNick;
	}
	public String getRoomFlag() {
		return roomFlag;
	}
	public void setRoomFlag(String roomFlag) {
		this.roomFlag = roomFlag;
	}
	public String getRoomOwner() {
		return roomOwner;
	}
	public void setRoomOwner(String roomOwner) {
		this.roomOwner = roomOwner;
	}
	public byte[] getRoomData() {
		return roomData;
	}
	public void setRoomData(byte[] roomData) {
		this.roomData = roomData;
	}
	public String getIsShowName() {
		return isShowName;
	}
	public void setIsShowName(String isShowName) {
		this.isShowName = isShowName;
	}
	public String getSelfDisplayName() {
		return selfDisplayName;
	}
	public void setSelfDisplayName(String selfDisplayName) {
		this.selfDisplayName = selfDisplayName;
	}
	public String getStyle() {
		return style;
	}
	public void setStyle(String style) {
		this.style = style;
	}
	public String getChatRoomDataFlag() {
		return chatRoomDataFlag;
	}
	public void setChatRoomDataFlag(String chatRoomDataFlag) {
		this.chatRoomDataFlag = chatRoomDataFlag;
	}
	public String getModifyTime() {
		return modifyTime;
	}
	public void setModifyTime(String modifyTime) {
		this.modifyTime = modifyTime;
	}
	public String getChatRoomNotice() {
		return chatRoomNotice;
	}
	public void setChatRoomNotice(String chatRoomNotice) {
		this.chatRoomNotice = chatRoomNotice;
	}
	public String getChatRoomNoticeNewVersion() {
		return chatRoomNoticeNewVersion;
	}
	public void setChatRoomNoticeNewVersion(String chatRoomNoticeNewVersion) {
		this.chatRoomNoticeNewVersion = chatRoomNoticeNewVersion;
	}
	public String getChatRoomNoticeOldVersion() {
		return chatRoomNoticeOldVersion;
	}
	public void setChatRoomNoticeOldVersion(String chatRoomNoticeOldVersion) {
		this.chatRoomNoticeOldVersion = chatRoomNoticeOldVersion;
	}
	public String getChatRoomNoticeEditor() {
		return chatRoomNoticeEditor;
	}
	public void setChatRoomNoticeEditor(String chatRoomNoticeEditor) {
		this.chatRoomNoticeEditor = chatRoomNoticeEditor;
	}
	public String getChatRoomNoticePublishTime() {
		return chatRoomNoticePublishTime;
	}
	public void setChatRoomNoticePublishTime(String chatRoomNoticePublishTime) {
		this.chatRoomNoticePublishTime = chatRoomNoticePublishTime;
	}
	public ChatRoom(String chatRoomName, String addTime, String memberList, String displayName, String chatRoomNick,
			String roomFlag, String roomOwner, byte[] roomData, String isShowName, String selfDisplayName, String style,
			String chatRoomDataFlag, String modifyTime, String chatRoomNotice, String chatRoomNoticeNewVersion,
			String chatRoomNoticeOldVersion, String chatRoomNoticeEditor, String chatRoomNoticePublishTime) {
		super();
		this.chatRoomName = chatRoomName;
		this.addTime = addTime;
		this.memberList = memberList;
		this.displayName = displayName;
		this.chatRoomNick = chatRoomNick;
		this.roomFlag = roomFlag;
		this.roomOwner = roomOwner;
		this.roomData = roomData;
		this.isShowName = isShowName;
		this.selfDisplayName = selfDisplayName;
		this.style = style;
		this.chatRoomDataFlag = chatRoomDataFlag;
		this.modifyTime = modifyTime;
		this.chatRoomNotice = chatRoomNotice;
		this.chatRoomNoticeNewVersion = chatRoomNoticeNewVersion;
		this.chatRoomNoticeOldVersion = chatRoomNoticeOldVersion;
		this.chatRoomNoticeEditor = chatRoomNoticeEditor;
		this.chatRoomNoticePublishTime = chatRoomNoticePublishTime;
	}
	public ChatRoom() {
		super();
	}

	@Override
	public ChatRoom translate(Cursor cursor) {
		if(cursor != null){
			this.chatRoomName = cursor.getString(cursor.getColumnIndex("chatroomname"));
			this.addTime = cursor.getString(cursor.getColumnIndex("addtime"));
			this.memberList = cursor.getString(cursor.getColumnIndex("memberlist"));
			this.displayName = cursor.getString(cursor.getColumnIndex("displayname"));
			this.chatRoomNick = cursor.getString(cursor.getColumnIndex("chatroomnick"));
			this.roomFlag = cursor.getString(cursor.getColumnIndex("roomflag"));
			this.roomOwner = cursor.getString(cursor.getColumnIndex("roomowner"));
			this.roomData = cursor.getBlob(cursor.getColumnIndex("roomdata"));
			this.isShowName = cursor.getString(cursor.getColumnIndex("isShowname"));
			this.selfDisplayName = cursor.getString(cursor.getColumnIndex("selfDisplayName"));
			this.style = cursor.getString(cursor.getColumnIndex("style"));
			this.chatRoomDataFlag = cursor.getString(cursor.getColumnIndex("chatroomdataflag"));
			this.modifyTime = cursor.getString(cursor.getColumnIndex("modifytime"));
			this.chatRoomNotice = cursor.getString(cursor.getColumnIndex("chatroomnotice"));
			this.chatRoomNoticeNewVersion = cursor.getString(cursor.getColumnIndex("chatroomnoticeNewVersion"));
			this.chatRoomNoticeOldVersion = cursor.getString(cursor.getColumnIndex("chatroomnoticeOldVersion"));
			this.chatRoomNoticeEditor = cursor.getString(cursor.getColumnIndex("chatroomnoticeEditor"));
			this.chatRoomNoticePublishTime = cursor.getString(cursor.getColumnIndex("chatroomnoticePublishTime"));
		}
		return this;
	}
}
